from django import forms
from .models import Tag, Article


class TagForm(forms.ModelForm):
    class Meta:
        model = Tag
        fields = '__all__'
    # name = forms.CharField(label='tag name', max_length=50)

class ArticleForm(forms.ModelForm):
    class Meta:
        model = Article
        fields = '__all__'
